﻿<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"
         isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>service</title>
        <link type="text/css" rel="stylesheet" media="all" href="<%=request.getContextPath()%>/styles/global.css"/>
        <link type="text/css" rel="stylesheet" media="all" href="<%=request.getContextPath()%>/styles/global_color.css"/>
        <script src="../styles/jquery-3.3.1.js"></script>
       <script src="/styles/jquery-3.3.1.js"></script>
    </head>

    <script>
        // $(function () {
        //     $.ajax({
        //         type:"GET",
        //         url:"/serviceController/modiDetail",
        //         data:{
        //             serviceId:id
        //         },
        //         success:function (resp) {
        //             javascript:window.location.href='/service/service_modi.jsp';
        //         }
        // })
    </script>


    <body>
        <!--Logo区域开始-->
        <div id="header">
            <img src="../images/logo.png" alt="logo" class="left"/>
            <a href="<%=request.getContextPath()%>/admins/exit">[退出]</a>
        </div>
        <!--Logo区域结束-->
        <!--导航区域开始-->
        <div id="navi">
            <c:import url="../navigation.jsp"/>
            <script>
                var li = document.getElementById("menu").children;
                var title = document.getElementsByTagName('title')[0].textContent;
                for (let i = 0; i < li.length; i++) {
                    if (li[i].children[0].className.startsWith(title)){
                        li[i].children[0].className = title + '_on';
                    }
                }
            </script>
        </div>
        <!--导航区域结束-->
        <!--主要区域开始-->
        <div id="main" class="dataList">
            <form action="" method="" class="main_form">

                <!--必填项-->
                <div class="text_info clearfix"><span>业务账号ID：</span></div>
                <div class="input_info"><input value="${service.serviceId}" type="text" id="serviceId" readonly class="readonly" /></div>
                <div class="text_info clearfix"><span>账务账号ID：</span></div>
                <div class="input_info"><input type="text" value="${service.accountId}" id="accountId" readonly class="readonly" /></div>
                <div class="text_info clearfix"><span>客户姓名：</span></div>
                <div class="input_info"><input type="text" value="${service.account.realName}" id="realName" readonly class="readonly" /></div>
                <div class="text_info clearfix"><span>身份证号码：</span></div>
                <div class="input_info"><input type="text" id="idcardNo" value="${service.account.idcardNo}" readonly class="readonly"  /></div>
                <div class="text_info clearfix"><span>服务器 IP：</span></div>
                <div class="input_info"><input type="text" value="${service.unixHost}" id="unixHost" readonly class="readonly" /></div>
                <div class="text_info clearfix"><span>OS 账号：</span></div>
                <div class="input_info"><input type="text" value="${service.osUsername}" id="osUsername" readonly class="readonly" /></div>
                <div class="text_info clearfix"><span>状态：</span></div>
                <div class="input_info">
                    <select disabled id="status">
                        <c:if test="${service.status==0}">
                            <option>开通</option>
                        </c:if>
                        <c:if test="${service.status==1}">
                           <option> 暂停</option>
                        </c:if>
                        <c:if test="${service.status==2}">
                            <option>删除</option>
                        </c:if>
                    </select>                        
                </div>
                <div class="text_info clearfix"><span>开通时间：</span></div>
                <div class="input_info"><input value="${service.createDate}" id="createDate" type="text" readonly
                                               class="readonly" />${service.createDate}</div>
                <div class="text_info clearfix"><span>资费 ID：</span></div>
                <div class="input_info"><input value="${service.cost.costId}" id="costId" type="text"
                                               class="readonly" readonly />${service.cost.costId}</div>
                <div class="text_info clearfix"><span>资费名称：</span></div>
                <div class="input_info"><input value="${service.cost.name}" id="name" type="text"
                                               readonly class="width200 readonly" /></div>
                <div class="text_info clearfix"><span>资费说明：</span></div>
                <div class="input_info_high">
                    <textarea class="width300 height70 readonly"
                              readonly id="descr">
                        ${service.cost.descr}
                        </textarea>
                </div>  
                <!--操作按钮-->
                <div class="button_info clearfix">
                    <input type="button" value="返回" class="btn_save"
                           onclick="javascript:window.location.href=
                           '<%=request.getContextPath()%>/serviceController/findByPage'" />
                </div>
            </form>
        </div>
        <!--主要区域结束-->
        <div id="footer">
            <span>[源自北美的技术，最优秀的师资，最真实的企业环境，最适用的实战项目]</span>
            <br />
             <span>版权所有(C)云科技有限公司 </span>
        </div>
    </body>
</html>
